package com.entity;

import java.math.BigDecimal;

/**
 * Created by he on 2025/3/23 16:28
 * 订单实体类
 */
public class Book extends BaseEntity{
    //订单ID
    private int bookId;
    //订单详情ID
    private String bookdetailIds;
    //该订单总价
    private BigDecimal totalPrice;

    public Book() {
    }

    public Book(int bookId, String bookdetailIds, BigDecimal totalPrice) {
        this.bookId = bookId;
        this.bookdetailIds = bookdetailIds;
        this.totalPrice = totalPrice;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookdetailIds() {
        return bookdetailIds;
    }

    public void setBookdetailIds(String bookdetailIds) {
        this.bookdetailIds = bookdetailIds;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId='" + bookId + '\'' +
                ", bookdetailIds='" + bookdetailIds + '\'' +
                ", totalPrice='" + totalPrice + '\'' +
                '}';
    }
}
